package com.wsjc.manager.entity;

import java.io.Serializable;
import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

import com.wsjc.common.core.utils.DateUtils;

/**
 * 
 * @Description  灭菌表
 * @ClassName   WjSterilization 
 * @Date        2018年7月22日 下午6:04:53 
 * @Author      liyang 
 *
 */
public class WjSterilization implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1224206581340740089L;

	/** 主键 */
	@Field
    private String id;

    /** 医院ID */
	@Field
    private String hospitalId;
    
    /** 医院名称 */
	@Field
    private String hospitalName;

    /** 设备编号 */
	@Field
    private String deviceNumber;

    /** 使用科室 */
	@Field
    private String opDepartment;

    /** 操作者 */
	@Field
    private String opPersion;

    /** 判定 */
	@Field
    private String judged;

    /** 设备程序号 */
	@Field
    private String deviceProgramNumber;

    /** 设备设定温度 */
	@Field
    private String deviceSetCool;

    /** 设备设定时间 */
	@Field
    private String deviceSetTime;

    /** 灭菌保持时间 */
	@Field
    private String keepTime;

    /** 温度最高值 */
	@Field
    private String coolMaxValue;

    /** 压力真空度 */
	@Field
    private String pressureVacuumDegree;

    /** 压力范围 */
	@Field
    private String pressureRange;

    /** 压力反求温度 */
	@Field
    private String pressureReverseCool;

    /** 设备保持时间 */
	@Field
    private String deviceKeeptime;

    /** 温度波动性 */
	@Field
    private String coolVolatility;

    /** 数据包名称 */
	@Field
    private String dataPackageName;

    /** 二进制包的描述 */
	@Field
    private String packageInfo;

    /** 摄像索引 */
	@Field
    private String cameraIndex;

    /** 上传单位 */
    @Field
    private String uploadUnit;

    /** 检测结果 */
    @Field
    private String detectionResult;

    /** 设备型号 */
    @Field
    private String deviceKinds;

    /** 设备品牌 */
    @Field
    private String deviceBrand;

    /** 设备容量 */
    @Field
    private String deviceCapacity;

    /** 检测时间 */
    @Field
    private String detectionTime;
    
    /** 检测时间 时间戳，用来solr 时间段查询和排序 */
    @Field
    private long detectionTimestamp;
    
    /** 温度记录仪编号 */
    @Field
    private String recorderId;

    /** 原因类型（显示） */
    @Field
    private String reasonStyle;

    /** 原因的文字说明 */
    @Field
    private String reasonExplain;

    /** 设备级别 */
    @Field
    private String deviceLevel;

    /** 设备类型 */
    @Field
    private String deviceType;

    /** 创建时间 */
    private Date createTime;

    /** 处置的文字说明 */
    @Field
    private String disposeExplain;

    /** 处置类型（显示） */
    @Field
    private String disposeStyle;

    /** 修改时间 */
    private Date editTime;

    /** 版本信息 */
    private int version = 0;
    
    /** oss dir */
    @Field
    private String ossDir;
    
    /** old id */
    @Field
    private String oldId;
    
    //表名
    private String tableName ;
    
    //solr dataType
    @Field
    private String dataType;
    
    //solr 医院类型 
	@Field
    private String hospitalType;
	
	//solr 区id
	@Field
	private String areaId;
    
    public WjSterilization(String id, String hospitalId, String deviceNumber, String opDepartment, String opPersion, String judged, String deviceProgramNumber, String deviceSetCool, String deviceSetTime, String keepTime, String coolMaxValue, String pressureVacuumDegree, String pressureRange, String pressureReverseCool, String deviceKeeptime, String coolVolatility, String dataPackageName, String packageInfo, String cameraIndex, String uploadUnit, String detectionResult, String deviceKinds, String deviceBrand, String deviceCapacity, String detectionTime, String recorderId, String reasonStyle, String reasonExplain, String deviceLevel, String deviceType, Date createTime, String disposeExplain, String disposeStyle, Date editTime, int version) {
        this.id = id;
        this.hospitalId = hospitalId;
        this.deviceNumber = deviceNumber;
        this.opDepartment = opDepartment;
        this.opPersion = opPersion;
        this.judged = judged;
        this.deviceProgramNumber = deviceProgramNumber;
        this.deviceSetCool = deviceSetCool;
        this.deviceSetTime = deviceSetTime;
        this.keepTime = keepTime;
        this.coolMaxValue = coolMaxValue;
        this.pressureVacuumDegree = pressureVacuumDegree;
        this.pressureRange = pressureRange;
        this.pressureReverseCool = pressureReverseCool;
        this.deviceKeeptime = deviceKeeptime;
        this.coolVolatility = coolVolatility;
        this.dataPackageName = dataPackageName;
        this.packageInfo = packageInfo;
        this.cameraIndex = cameraIndex;
        this.uploadUnit = uploadUnit;
        this.detectionResult = detectionResult;
        this.deviceKinds = deviceKinds;
        this.deviceBrand = deviceBrand;
        this.deviceCapacity = deviceCapacity;
        this.detectionTime = detectionTime;
        this.recorderId = recorderId;
        this.reasonStyle = reasonStyle;
        this.reasonExplain = reasonExplain;
        this.deviceLevel = deviceLevel;
        this.deviceType = deviceType;
        this.createTime = createTime;
        this.disposeExplain = disposeExplain;
        this.disposeStyle = disposeStyle;
        this.editTime = editTime;
        this.version = version;
    }

    public WjSterilization() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
        this.dataType = id.substring(2, 5);
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId == null ? null : hospitalId.trim();
        this.hospitalType = hospitalId.substring(3, 5);
        this.areaId = hospitalId.substring(5, 11);
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber == null ? null : deviceNumber.trim();
    }

    public String getOpDepartment() {
        return opDepartment;
    }

    public void setOpDepartment(String opDepartment) {
        this.opDepartment = opDepartment == null ? null : opDepartment.trim();
    }

    public String getOpPersion() {
        return opPersion;
    }

    public void setOpPersion(String opPersion) {
        this.opPersion = opPersion == null ? null : opPersion.trim();
    }

    public String getJudged() {
        return judged;
    }

    public void setJudged(String judged) {
        this.judged = judged == null ? null : judged.trim();
    }

    public String getDeviceProgramNumber() {
        return deviceProgramNumber;
    }

    public void setDeviceProgramNumber(String deviceProgramNumber) {
        this.deviceProgramNumber = deviceProgramNumber == null ? null : deviceProgramNumber.trim();
    }

    public String getDeviceSetCool() {
        return deviceSetCool;
    }

    public void setDeviceSetCool(String deviceSetCool) {
        this.deviceSetCool = deviceSetCool == null ? null : deviceSetCool.trim();
    }

    public String getDeviceSetTime() {
        return deviceSetTime;
    }

    public void setDeviceSetTime(String deviceSetTime) {
        this.deviceSetTime = deviceSetTime == null ? null : deviceSetTime.trim();
    }

    public String getKeepTime() {
        return keepTime;
    }

    public void setKeepTime(String keepTime) {
        this.keepTime = keepTime == null ? null : keepTime.trim();
    }

    public String getCoolMaxValue() {
        return coolMaxValue;
    }

    public void setCoolMaxValue(String coolMaxValue) {
        this.coolMaxValue = coolMaxValue == null ? null : coolMaxValue.trim();
    }

    public String getPressureVacuumDegree() {
        return pressureVacuumDegree;
    }

    public void setPressureVacuumDegree(String pressureVacuumDegree) {
        this.pressureVacuumDegree = pressureVacuumDegree == null ? null : pressureVacuumDegree.trim();
    }

    public String getPressureRange() {
        return pressureRange;
    }

    public void setPressureRange(String pressureRange) {
        this.pressureRange = pressureRange == null ? null : pressureRange.trim();
    }

    public String getPressureReverseCool() {
        return pressureReverseCool;
    }

    public void setPressureReverseCool(String pressureReverseCool) {
        this.pressureReverseCool = pressureReverseCool == null ? null : pressureReverseCool.trim();
    }

    public String getDeviceKeeptime() {
        return deviceKeeptime;
    }

    public void setDeviceKeeptime(String deviceKeeptime) {
        this.deviceKeeptime = deviceKeeptime == null ? null : deviceKeeptime.trim();
    }

    public String getCoolVolatility() {
        return coolVolatility;
    }

    public void setCoolVolatility(String coolVolatility) {
        this.coolVolatility = coolVolatility == null ? null : coolVolatility.trim();
    }

    public String getDataPackageName() {
        return dataPackageName;
    }

    public void setDataPackageName(String dataPackageName) {
        this.dataPackageName = dataPackageName == null ? null : dataPackageName.trim();
    }

    public String getPackageInfo() {
        return packageInfo;
    }

    public void setPackageInfo(String packageInfo) {
        this.packageInfo = packageInfo == null ? null : packageInfo.trim();
    }

    public String getCameraIndex() {
        return cameraIndex;
    }

    public void setCameraIndex(String cameraIndex) {
        this.cameraIndex = cameraIndex == null ? null : cameraIndex.trim();
    }

    public String getUploadUnit() {
        return uploadUnit;
    }

    public void setUploadUnit(String uploadUnit) {
        this.uploadUnit = uploadUnit == null ? null : uploadUnit.trim();
    }

    public String getDetectionResult() {
        return detectionResult;
    }

    public void setDetectionResult(String detectionResult) {
        this.detectionResult = detectionResult == null ? null : detectionResult.trim();
    }

    public String getDeviceKinds() {
        return deviceKinds;
    }

    public void setDeviceKinds(String deviceKinds) {
        this.deviceKinds = deviceKinds == null ? null : deviceKinds.trim();
    }

    public String getDeviceBrand() {
        return deviceBrand;
    }

    public void setDeviceBrand(String deviceBrand) {
        this.deviceBrand = deviceBrand == null ? null : deviceBrand.trim();
    }

    public String getDeviceCapacity() {
        return deviceCapacity;
    }

    public void setDeviceCapacity(String deviceCapacity) {
        this.deviceCapacity = deviceCapacity == null ? null : deviceCapacity.trim();
    }

    public String getDetectionTime() {
        return detectionTime;
    }

    public void setDetectionTime(String detectionTime) {
        this.detectionTime = detectionTime;
        this.detectionTimestamp = DateUtils.StringToDate(detectionTime).getTime();
    }

    public String getRecorderId() {
        return recorderId;
    }

    public void setRecorderId(String recorderId) {
        this.recorderId = recorderId == null ? null : recorderId.trim();
    }

    public String getReasonStyle() {
        return reasonStyle;
    }

    public void setReasonStyle(String reasonStyle) {
        this.reasonStyle = reasonStyle == null ? null : reasonStyle.trim();
    }

    public String getReasonExplain() {
        return reasonExplain;
    }

    public void setReasonExplain(String reasonExplain) {
        this.reasonExplain = reasonExplain == null ? null : reasonExplain.trim();
    }

    public String getDeviceLevel() {
        return deviceLevel;
    }

    public void setDeviceLevel(String deviceLevel) {
        this.deviceLevel = deviceLevel == null ? null : deviceLevel.trim();
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType == null ? null : deviceType.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDisposeExplain() {
        return disposeExplain;
    }

    public void setDisposeExplain(String disposeExplain) {
        this.disposeExplain = disposeExplain == null ? null : disposeExplain.trim();
    }

    public String getDisposeStyle() {
        return disposeStyle;
    }

    public void setDisposeStyle(String disposeStyle) {
        this.disposeStyle = disposeStyle == null ? null : disposeStyle.trim();
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

	public String getHospitalName() {
		return hospitalName;
	}

	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	public String getOssDir() {
		return ossDir;
	}

	public void setOssDir(String ossDir) {
		this.ossDir = ossDir;
	}

	public String getOldId() {
		return oldId;
	}

	public void setOldId(String oldId) {
		this.oldId = oldId;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getHospitalType() {
		return hospitalType;
	}

	public void setHospitalType(String hospitalType) {
		this.hospitalType = hospitalType;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public long getDetectionTimestamp() {
		return detectionTimestamp;
	}

	public void setDetectionTimestamp(long detectionTimestamp) {
		this.detectionTimestamp = detectionTimestamp;
	}

	@Override
	public String toString() {
		return "WjSterilization [id=" + id + ", hospitalId=" + hospitalId + ", hospitalName=" + hospitalName
				+ ", deviceNumber=" + deviceNumber + ", opDepartment=" + opDepartment + ", opPersion=" + opPersion
				+ ", judged=" + judged + ", deviceProgramNumber=" + deviceProgramNumber + ", deviceSetCool="
				+ deviceSetCool + ", deviceSetTime=" + deviceSetTime + ", keepTime=" + keepTime + ", coolMaxValue="
				+ coolMaxValue + ", pressureVacuumDegree=" + pressureVacuumDegree + ", pressureRange=" + pressureRange
				+ ", pressureReverseCool=" + pressureReverseCool + ", deviceKeeptime=" + deviceKeeptime
				+ ", coolVolatility=" + coolVolatility + ", dataPackageName=" + dataPackageName + ", packageInfo="
				+ packageInfo + ", cameraIndex=" + cameraIndex + ", uploadUnit=" + uploadUnit + ", detectionResult="
				+ detectionResult + ", deviceKinds=" + deviceKinds + ", deviceBrand=" + deviceBrand
				+ ", deviceCapacity=" + deviceCapacity + ", detectionTime=" + detectionTime + ", detectionTimestamp="
				+ detectionTimestamp + ", recorderId=" + recorderId + ", reasonStyle=" + reasonStyle
				+ ", reasonExplain=" + reasonExplain + ", deviceLevel=" + deviceLevel + ", deviceType=" + deviceType
				+ ", createTime=" + createTime + ", disposeExplain=" + disposeExplain + ", disposeStyle=" + disposeStyle
				+ ", editTime=" + editTime + ", version=" + version + ", ossDir=" + ossDir + ", oldId=" + oldId
				+ ", tableName=" + tableName + ", dataType=" + dataType + ", hospitalType=" + hospitalType + ", areaId="
				+ areaId + "]";
	}

	


    
    
    
    
    
    
    
    
}